﻿using System;
using System.Windows;
using System.Windows.Controls;
using mal.Web.Silverlight.MEF.Core.Attributes;
using mal.Web.Silverlight.MEF.Module1.ViewModel;

namespace mal.Web.Silverlight.MEF.Module1.Views
{
    /// <summary>
    /// Description for Home.
    /// </summary>
    [ExportModulePage( NavigateUri = "Home")]  
    public partial class Home : Page
    {
        /// <summary>
        /// Initializes a new instance of the Home class.
        /// </summary>
        public Home()
        {
            InitializeComponent();

            this.Loaded += new RoutedEventHandler(Home_Loaded);            
        }

        void Home_Loaded(object sender, RoutedEventArgs e)
        {
            this.DataContext = ViewModelLocator.HomeStatic;
        }
    }
}